//
//  NetRequest+DocAAPI.m
//  AppleMarket
//
//  Created by yangy on 01/11/2018.
//  Copyright © 2018 szgsy. All rights reserved.
//

#import "NetRequest+DocAPI.h"

@implementation NetRequest (DocAPI)

+ (void) request_GetDocModelById:(NSInteger) docId
                 completeHandler:(void (^)(id responseObj)) completeHandler
                            fail:(void (^)(NSError *error)) failHandler
{
    [NetRequest getWithUrl:@"/api/DocApi/GetDocModelById" parameters:@{@"docId" : @(docId)} success:^(id response) {
        completeHandler(response);
    } fail:^(NSError *error) {
        failHandler(error);
    } showHUD:NO];
}

@end
